Skip to content

Conversation

@bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Nov 7, 2025

Thank you for your contribution!

We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:

Submission Checklist 📝

  • I have updated existing examples or added new ones (if applicable).
  • I have used cargo xtask fmt-packages command to ensure that all changed code is formatted correctly.
  • My changes were added to the CHANGELOG.md in the proper section.
  • I have added necessary changes to user code to the latest Migration Guide.
  • My changes are in accordance to the esp-rs developer guidelines

Extra:

Pull Request Details 📖

Description

Closes #4453
Closes #4454

Not sure about the migration-guide - I wouldn't expect anyone to really handle specific errors (especially given the errors were designed in an unfortunate way)

Testing

CI

@bjoernQ bjoernQ marked this pull request as ready for review November 7, 2025 15:44
Copy link
Contributor

@JurajSadel JurajSadel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nits

),
WifiError::OutOfMemory => write!(f, "Out of memory."),
WifiError::NotStarted => write!(f, "Wi-Fi driver was not started."),
WifiError::NotStopped => write!(f, " Wi-Fi driver was not stopped."),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
WifiError::NotStopped => write!(f, " Wi-Fi driver was not stopped."),
WifiError::NotStopped => write!(f, "Wi-Fi driver was not stopped."),

WifiError::WakeFailed => {
write!(f, "Wi-Fi is in sleep state (RF closed) and wakeup failed.")
}
WifiError::WouldBlock => write!(f, " The caller would block."),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
WifiError::WouldBlock => write!(f, " The caller would block."),
WifiError::WouldBlock => write!(f, "The caller would block."),

/// Wi-Fi is in sleep state (RF closed) and wakeup failed
WakeFailed,

/// The caller would block
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not the caller would block, but the call/operation itself, isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I honestly just copied the description from ESP-IDF but yes - this sounds a bit off 👍

@bjoernQ bjoernQ added this pull request to the merge queue Nov 10, 2025
Merged via the queue into esp-rs:main with commit 2d6018d Nov 10, 2025
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WifiError has variants that overlap with WifiError::InternalWifiError Remove InitializationError::General

3 participants